THE BODY AND HEADINGS IN THE BODY

The BODY of an HTML document also contains several different types of statements. Among these are: Headings, Lists, Links to other pages, references to Images and Audio Clips, and, of course, plain text. Tools include horizontal lines, line and paragraph breaks, and various types of character emphasis.

Before we consider the parts of the body, we need to realize that the actual formatting of the document, and the interpretation of the codes or tags that we use are the realm of the browser, and that the same document viewed with two different browsers may look quite different.

HEADINGS

There are 6 levels of headings available in an HTML document. There are no real rules for using the headings, i.e., all of your headings could be type H3, or the first could be an H3 and the next an H1. Because many browsers will treat the heading types hierarchically, H1 being printed in the largest print, and H6 in the smallest, it is considered good practice to use the headings in a way that match the outline of your document.

The form of the headings is:

	-- <Hn> -- heading text -- </Hn> --|
		where 1 <= n <= 6

(View Alt. Syntax Definition.)


Examples of Headings within the Body.


Back to the Index.